package com.hh.erp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hh.erp.entity.SysPost;
import com.hh.erp.mapper.SysPostMapper;
import com.hh.erp.service.SysPostService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 岗位信息表 服务实现类
 * </p>
 *
 * @author zhb
 * @since 2024-04-28
 */
@Service
public class SysPostServiceImpl extends ServiceImpl<SysPostMapper, SysPost> implements SysPostService {

    @Override
    public List<SysPost> selectPostAll() {
        return this.baseMapper.selectList(new QueryWrapper<SysPost>());
    }

    @Override
    public List<Long> selectPostListByUserId(Long userId) {
        return this.baseMapper.selectPostListByUserId(userId);
    }
}
